home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7661 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: news.eunet.fi!nullnet!tna!marcus.alanen
  3. From: marcus.alanen@tna.nullnet.fi (Marcus Alanen)
  4. Subject: Re: Help with transparent obj
  5. Message-ID: <64_5736@tna.nullnet.fi>
  6. References: <4l13tn$u@ns.ccsn.edu>
  7. Organization: The New Age BBBS
  8. Sender: news@tna.nullnet.fi (News Administrator)
  9. Date: 19 Apr 1996 20:05:06 +0200
  10. MIME-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13.  
  14. > I have been trying to write a function in C that will paste a
  15. > pre-defined block down onto the screen with color 0 (or a certain area)
  16. > being transparent (kinda like how BOBS work)
  17.  
  18.     Uh... graphics.library/BltMaskBitMapRastPort with a minterm
  19.     of (I think) #$C0, which means a normal blit. Then, in register a2,
  20.     you must pass the address of the mask. The first word in the mask will be
  21.     used for all bitplanes in the source bitmap and then pasted onto
  22.     the destination bitmap, the next word (*not* the word under the first
  23.     one!) will be used for line 2 etc.
  24.     I think it was like this... ;) Anyway, your "mask" memory should
  25.     consist of one plane with it's mask words from left to right,
  26.     not from up to down, otherwise it'll use the wrong mask.
  27.     If anybody has a better way of explaining this mask thingy then
  28.     please write! I have myself some problems...
  29.  
  30. > suggestions or help would be EXTREMELY appreciated -- this problem has
  31. > haunted me for almost a year. Thanks a meg in advance...
  32.  
  33.     And now you ask for help? Gee, that *is* some pride... :)
  34.  
  35.     Marcus Alanen
  36.     marcus.alanen@tna.nullnet.fi
  37.